package com.job.ZhangMeng.Homework0707.kszy;

public class TestStudent0707 {
    public static void main(String[] args) {
        Student stu;
        System.out.println(Student.count);

        stu=new Student();
        System.out.println(stu.count);//不推荐
        System.out.println(Student.count);

        Student stu2=new Student();
        System.out.println(Student.count);
        System.out.println(stu.count);
        System.out.println(stu2.count);

        stu.count=100;
        System.out.println(Student.count);
        System.out.println(stu.count);
        System.out.println(stu2.count);

        stu.saySth();
        stu2.saySth();
    }
}
